Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace deprecated syntax #18

Merged
merged 1 commit into from
Dec 13, 2024
Merged

chore: replace deprecated syntax #18

merged 1 commit into from
Dec 13, 2024

Conversation

nnyyxxxx
Copy link
Contributor

No description provided.

@nnyyxxxx
Copy link
Contributor Author

tested

@nnyyxxxx
Copy link
Contributor Author

to clarify the patch is fixing:

[ 56%] Building CXX object CMakeFiles/hyprpolkitagent.dir/src/core/Agent.cpp.o
/home/nyx/hyprpolkitagent/src/core/Agent.cpp: In member function ‘void CAgent::initAuthPrompt()’:
/home/nyx/hyprpolkitagent/src/core/Agent.cpp:67:36: warning: ‘QString QtLiterals::operator""_qs(const char16_t*, size_t)’ is deprecated: Use _s from Qt::StringLiterals namespace instead. [-Wdeprecated-declarations]
   67 |     authState.qmlEngine->load(QUrl{u"qrc:/qt/qml/hpa/qml/main.qml"_qs});
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/qt6/QtCore/qcoreapplication.h:8,
                 from /usr/include/qt6/QtWidgets/qapplication.h:8,
                 from /usr/include/qt6/QtWidgets/QApplication:1,
                 from /home/nyx/hyprpolkitagent/src/core/Agent.hpp:3,
                 from /home/nyx/hyprpolkitagent/src/core/Agent.cpp:6:
/usr/include/qt6/QtCore/qstring.h:1635:16: note: declared here
 1635 | inline QString operator""_qs(const char16_t *str, size_t size) noexcept
      |   

this compile warning

@nnyyxxxx
Copy link
Contributor Author

cc @vaxerski

@vaxerski vaxerski merged commit b6e8667 into hyprwm:main Dec 13, 2024
1 check passed
@nnyyxxxx nnyyxxxx deleted the fix_deprecated_syntax branch December 13, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants